package com.zhihuiyanche.common.util;

import java.util.Calendar;
import java.util.Random;

public final class PriveKeyUtil {
	
	public static String generatePriveKey() {
		StringBuilder str=new StringBuilder();
		Calendar calendar = Calendar.getInstance();
		
		Random random=new Random();
		//随机生成数字，并添加到字符串
		for(int i=0;i<4;i++){
		    str.append(random.nextInt(10));
		}
		//将字符串转换为数字并输出
		return String.valueOf(calendar.getTime().getTime() + str.toString());
	}
}
